home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / pmake / RCS / hdrs.mk,v < prev    next >
Encoding:
Text File  |  1990-02-20  |  5.6 KB  |  337 lines

  1. head     1.10;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @@;
  7.  
  8.  
  9. 1.10
  10. date     90.02.20.11.50.09;  author douglis;  state Exp;
  11. branches ;
  12. next     1.9;
  13.  
  14. 1.9
  15. date     89.11.07.23.43.06;  author rab;  state Exp;
  16. branches ;
  17. next     1.8;
  18.  
  19. 1.8
  20. date     88.11.23.17.28.13;  author ouster;  state Exp;
  21. branches ;
  22. next     1.7;
  23.  
  24. 1.7
  25. date     88.10.26.16.29.39;  author ouster;  state Exp;
  26. branches ;
  27. next     1.6;
  28.  
  29. 1.6
  30. date     88.08.20.11.35.50;  author ouster;  state Exp;
  31. branches ;
  32. next     1.5;
  33.  
  34. 1.5
  35. date     88.08.18.15.20.42;  author ouster;  state Exp;
  36. branches ;
  37. next     1.4;
  38.  
  39. 1.4
  40. date     88.07.27.17.35.52;  author ouster;  state Exp;
  41. branches ;
  42. next     1.3;
  43.  
  44. 1.3
  45. date     88.07.13.15.57.23;  author ouster;  state Exp;
  46. branches ;
  47. next     1.2;
  48.  
  49. 1.2
  50. date     88.07.13.10.26.14;  author ouster;  state Exp;
  51. branches ;
  52. next     1.1;
  53.  
  54. 1.1
  55. date     88.06.21.16.04.42;  author ouster;  state Exp;
  56. branches ;
  57. next     ;
  58.  
  59.  
  60. desc
  61. @@
  62.  
  63.  
  64. 1.10
  65. log
  66. @tried to add some consistency to ::/: operators, and fixed tve's TYPE==personal complaint
  67. @
  68. text
  69. @#
  70. # Included makefile for managing a directory containing only public
  71. # header file sources.
  72. #
  73. # $Header: /sprite/lib/pmake/RCS/hdrs.mk,v 1.9 89/11/07 23:43:06 rab Exp $ SPRITE (Berkeley)
  74. #
  75. # The makefile that includes this one should already have defined the
  76. # following variables:
  77. #    HDRS        all header files (all of which are public)
  78. #    INCLUDEDIR    place to install public header files
  79. #    SUBDIRS        list of subdirectories that contain additional
  80. #            related header files (used in "make mkmf").
  81. #
  82. # Optional variables that may be defined by the invoker:
  83. #    INSTALLFLAGS    additional flags to pass to install scripts.
  84. #
  85.  
  86. #
  87. # System programs -- assign conditionally so they may be redefined in
  88. # including makefile
  89. #
  90. BINDIR        = /sprite/cmds.$(MACHINE)
  91.  
  92. CHGRP        ?= $(BINDIR)/chgrp
  93. CHMOD        ?= $(BINDIR)/chmod
  94. CHOWN        ?= $(BINDIR)/chown
  95. CP        ?= $(BINDIR)/cp
  96. ECHO        ?= $(BINDIR)/echo
  97. MV        ?= $(BINDIR)/mv
  98. RM        ?= $(BINDIR)/rm
  99. UPDATE        ?= $(BINDIR)/update
  100.  
  101. INSTALLFLAGS    ?=
  102.  
  103. .MAKEFLAGS    : -C
  104.  
  105. #
  106. # MAKEINSTALLHDRS usage:
  107. #    <target> : MAKEINSTALLHDRS
  108. # All of the public headers files get updated to INCLUDEDIR.
  109. #
  110. MAKEINSTALLHDRS    : .USE .SILENT
  111. #if !empty(HDRS)
  112.     $(UPDATE) -l -m 444 -t $(INSTALLFLAGS) $(HDRS) $(INCLUDEDIR)
  113. #endif
  114.  
  115. #ifndef no_targets
  116.  
  117. default            : # Says nothing, does nothing. MAKEINSTALLHDRS
  118.  
  119. clean            !
  120.     $(RM) -f *~
  121.  
  122. install installhdrs    :: MAKEINSTALLHDRS
  123.  
  124. installworld        :: install .MAKE .SILENT
  125. #if !empty(SUBDIRS)
  126.     for i in $(SUBDIRS); do
  127.         echo %%% ${i} %%%
  128.         (cd $i; pmake $(.TARGET))
  129.     done
  130. #endif
  131.  
  132. mkmf            : .MAKE .SILENT
  133. #if !empty(SUBDIRS)
  134.     for i in $(SUBDIRS); do
  135.         echo  %%% ${i} %%%
  136.         (cd $i; mkmf)
  137.     done
  138. #endif
  139.  
  140. dist                    : subdirs_d
  141. #if !empty(HDRS) && defined(DISTDIR) && !empty(DISTDIR)
  142.     for i in $(HDRS); do
  143.         $(UPDATE) $${i} $(DISTDIR)/$${i}
  144.     done
  145. #endif
  146.  
  147. subdirs_d:
  148. #if !empty(SUBDIRS) && defined(DISTDIR) && !empty(DISTDIR)
  149.     for i in $(SUBDIRS); do
  150.         echo %%% $${i} %%%
  151. #ifdef TM
  152.         ( cd $${i}; $(MAKE) dist 'DISTDIR=$(DISTDIR)'/$${i} 'TM=$(TM)' )
  153. #else
  154.         ( cd $${i}; $(MAKE) dist 'DISTDIR=$(DISTDIR)'/$${i} )
  155. #endif
  156.     done
  157. #endif
  158.  
  159. newtm            : # Says nothing, does nothing.
  160.  
  161. #endif no_targets
  162.  
  163. #include        <rdist.mk>
  164. @
  165.  
  166.  
  167. 1.9
  168. log
  169. @Added distribution stuff.
  170. @
  171. text
  172. @d5 1
  173. a5 1
  174. # $Header: /sprite/lib/pmake/RCS/hdrs.mk,v 1.8 88/11/23 17:28:13 ouster Exp Locker: rab $ SPRITE (Berkeley)
  175. d54 1
  176. a54 1
  177. install installhdrs    : MAKEINSTALLHDRS
  178. d56 1
  179. a56 1
  180. installworld        : install .MAKE .SILENT
  181. @
  182.  
  183.  
  184. 1.8
  185. log
  186. @Revisions to make "make newtm" work.
  187. @
  188. text
  189. @d5 1
  190. a5 1
  191. # $Header: /sprite/lib/pmake/RCS/hdrs.mk,v 1.7 88/10/26 16:29:39 ouster Exp Locker: ouster $ SPRITE (Berkeley)
  192. d58 1
  193. a58 2
  194.     for i in $(SUBDIRS);
  195.     do
  196. d66 1
  197. a66 2
  198.     for i in $(SUBDIRS);
  199.     do
  200. d69 19
  201. @
  202.  
  203.  
  204. 1.7
  205. log
  206. @Install hdrs with mode 444.
  207. @
  208. text
  209. @d5 1
  210. a5 1
  211. # $Header: hdrs.mk,v 1.6 88/08/20 11:35:50 ouster Exp $ SPRITE (Berkeley)
  212. d49 1
  213. a49 1
  214. default:        MAKEINSTALLHDRS
  215. d54 3
  216. a56 1
  217. mkmf            : .MAKE .SILENT
  218. d60 2
  219. a61 2
  220.         echo  %%% ${i} %%%
  221.         (cd $i; mkmf)
  222. d65 1
  223. a65 1
  224. install installhdrs    : default .MAKE .SILENT
  225. d69 2
  226. a70 2
  227.         echo %%% ${i} %%%
  228.         (cd $i; pmake $(.TARGET))
  229. d73 2
  230. @
  231.  
  232.  
  233. 1.6
  234. log
  235. @Change update args:  leave things writable, strip binaries, don't
  236. change owner to root.
  237. @
  238. text
  239. @d5 1
  240. a5 1
  241. # $Header: hdrs.mk,v 1.5 88/08/18 15:20:42 ouster Exp $ SPRITE (Berkeley)
  242. d44 1
  243. a44 1
  244.     $(UPDATE) -l -m 664 -t $(INSTALLFLAGS) $(HDRS) $(INCLUDEDIR)
  245. @
  246.  
  247.  
  248. 1.5
  249. log
  250. @Use new update, use current time when installing headers.
  251. @
  252. text
  253. @d5 1
  254. a5 1
  255. # $Header: hdrs.mk,v 1.4 88/07/27 17:35:52 ouster Exp $ SPRITE (Berkeley)
  256. d44 1
  257. a44 1
  258.     $(UPDATE) -l -m 444 -o root -t $(INSTALLFLAGS) $(HDRS) $(INCLUDEDIR)
  259. @
  260.  
  261.  
  262. 1.4
  263. log
  264. @Switch over to use new binary directory.
  265. @
  266. text
  267. @d5 1
  268. a5 1
  269. # $Header: hdrs.mk,v 1.3 88/07/13 15:57:23 ouster Exp $ SPRITE (Berkeley)
  270. d31 1
  271. a31 1
  272. UPDATE        ?= /sprite/cmds/update -i
  273. d44 1
  274. a44 1
  275.     $(UPDATE) -l -m 444 -o root $(INSTALLFLAGS) $(HDRS) $(INCLUDEDIR)
  276. d49 2
  277. a50 3
  278. default:        installhdrs
  279. installhdrs:        MAKEINSTALLHDRS
  280. install:        installhdrs
  281. d63 1
  282. a63 1
  283. recursive        : installhdrs .MAKE .SILENT
  284. d68 1
  285. a68 1
  286.         (cd $i; pmake recursive)
  287. @
  288.  
  289.  
  290. 1.3
  291. log
  292. @Use "-i" switch to update to be safe (until kernel bug gets fixed).
  293. @
  294. text
  295. @d5 1
  296. a5 1
  297. # $Header: hdrs.mk,v 1.2 88/07/13 10:26:14 ouster Exp $ SPRITE (Berkeley)
  298. a17 2
  299. BINDIR        = /sprite/cmds
  300.  
  301. d22 2
  302. d31 1
  303. a31 1
  304. UPDATE        ?= $(BINDIR)/update -i
  305. @
  306.  
  307.  
  308. 1.2
  309. log
  310. @Reverse send of "define_targets", replace with "no_targets".
  311. @
  312. text
  313. @d5 1
  314. a5 1
  315. # $Header: hdrs.mk,v 1.1 88/06/21 16:04:42 ouster Exp $ SPRITE (Berkeley)
  316. d31 1
  317. a31 1
  318. UPDATE        ?= $(BINDIR)/update
  319. @
  320.  
  321.  
  322. 1.1
  323. log
  324. @Initial revision
  325. @
  326. text
  327. @d5 1
  328. a5 1
  329. # $Header: library.mk,v 1.11 88/06/21 11:31:29 ouster Exp $ SPRITE (Berkeley)
  330. d47 1
  331. a47 1
  332. #ifdef define_targets
  333. d73 1
  334. a73 1
  335. #endif define_targets
  336. @
  337.